<?php /*a:3:{s:76:"E:\phpstudy\PHPTutorial\WWW\adminluyu\application\admin\view\menu\index.html";i:1559201456;s:84:"E:\phpstudy\PHPTutorial\WWW\adminluyu\application\admin\view\_public\table_page.html";i:1559201456;s:85:"E:\phpstudy\PHPTutorial\WWW\adminluyu\application\admin\view\_public\public_head.html";i:1559282226;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <title><?php echo config('app_name'); ?></title>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="/static/admins/static/css/font.css">
    <link rel="stylesheet" href="/static/admins/static/css/weadmin.css">
    <link rel="stylesheet" href="/static/admins/static/css/luyuadmin.css">
    <script type="text/javascript" src="/static/admins/lib/layui/layui.js" charset="utf-8"></script>
    <script>
        layui.config({
            base: '/static/admins/static/js/',
            version: '101100'
        }).use(['admin','adminluyu']);
    </script>
    <style>
        .layui-table{
            width: 1px;
            white-space: nowrap; /* 自适应宽度*/
            word-break:  keep-all; /* 避免长单词截断，保持全部 */
            min-width: 100%;
        }
    </style>
</head>
<body>
<!--面包屑-->
<div class="weadmin-nav">
    <span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href=""><?php echo htmlentities($ctitle); ?></a>
        <a><cite><?php echo htmlentities($atitle); ?></cite></a>
    </span>
    <a class="layui-btn layui-btn-sm" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">&#xe669;</i></a>
</div>
<!--面包屑-->
<div class="weadmin-body">
    
    
<div class="weadmin-block" style="overflow: hidden">
    <?php if(auth("$classuri/add")): ?>
    <button class="layui-btn layui-btn-xs" data-modal='<?php echo url("$classuri/add"); ?>' data-title="添加根节点">添加节点</button>
    <?php endif; ?>
</div>

    <div style="overflow: auto">
        
<table class="layui-table" lay-even lay-skin="line" lay-size="sm">
    <thead>
    <tr>
        <th>id</th>
        <th>菜单名称</th>
        <th>url</th>
        <th>操作</th>
    </thead>
    <tbody>
    <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
    <tr>
        <td><?php echo htmlentities($vo['id']); ?></td>
        <td><?php echo htmlentities((isset($vo['_pre']) && ($vo['_pre'] !== '')?$vo['_pre']:'')); ?><?php echo htmlentities($vo['title']); ?></td>
        <td><?php echo htmlentities($vo['url']); ?></td>
        <td>
            <div class="layui-btn-group">
                <?php if(auth("$classuri/add")): ?>
                <button class="layui-btn layui-btn-xs" href="javascript:;" data-title="添加子菜单" data-modal='<?php echo url("$classuri/add",["pid"=>$vo['id']]); ?>'>
                    添加子菜单
                </button>
                <?php endif; if(auth("$classuri/edit")): ?>
                <button class="layui-btn layui-btn-xs" href="javascript:;" data-title="编辑菜单" data-modal='<?php echo url("$classuri/edit",["id"=>$vo['id']]); ?>'>
                    编辑
                </button>
                <?php endif; if(auth("$classuri/del")): ?>
                <button class="layui-btn layui-btn-xs" href="javascript:;"
                        data-confirm="确定要删除吗！" data-post='<?php echo url("$classuri/del"); ?>' data-param='ids=<?php echo htmlentities($vo['son_ids']); ?>'>
                    删除
                </button>
                <?php endif; ?>
            </div>
        </td>
    </tr>
    <?php endforeach; endif; else: echo "" ;endif; ?>
    </tbody>
</table>

    </div>
</div>

<script>
</script>

</body>
</html>